package com.tjsinfo.tjsoa.fileExpress.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.tjsinfo.tjsoa.fileExpress.bo.IFileExpressFileBo;
import com.tjsinfo.tjsoa.system.vo.User;

public class SelectExpressFileAction extends Action{
	private IFileExpressFileBo expressFileBo;
	public void setExpressFileBo(IFileExpressFileBo expressFileBo) {
		this.expressFileBo = expressFileBo;
	}
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		
		HttpSession session = request.getSession();
		User user = (User)session.getAttribute("user");
		
		List list = expressFileBo.getExpressFile(user.getUser_id());
		request.setAttribute("list", list);
		return mapping.findForward("ok");
	}
}
